/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package tp4_poo;

import java.util.Stack;

/**
 *
 * @author Daniel
 */
public class Pila_Arreglo extends Arreglo {

    //atributos
    private Stack<Integer> una_pila = new Stack<Integer>();

    //constructor
    public Pila_Arreglo() {

    }

    public void añadir_Elemento_Pila(int[] vec, int i) {
        una_pila.push(vec[i]);
    }

    public void sacar_Elemento_Pila() {
        System.out.println(una_pila.pop());
    }

}
